<?php

$d = ($edit) ? $module->fus_get($edit) : false;

?>

<h1 class="<?php echo ($add) ? 'add' : 'edit'; ?>"><?php echo ($add) ? $lang->get('add-fus') : $lang->get('edit-fus'); ?></h1>

<form name="frm" method="post" action="<?php echo $cosa->system('base-url'); ?>/?m=<?php echo $m; ?>&s=<?php echo $s; ?>">
<input type="hidden" name="<?php echo ($add) ? 'add' : 'edit'; ?>" value="<?php echo ($add) ? '1' : $d['id']; ?>" />
<ul>
	<li><label for="key"><?php $lang->put('key'); ?></label>
		<input type="text" name="key" value="<?php if($d) echo stripslashes($d['key']); ?>" class="fld" />
	</li>
	<li><label for="value"><?php $lang->put('text'); ?></label>
		<textarea name="value"><?php if($d) echo stripslashes($d['value']); ?></textarea>
	</li>
	<li class="sbmt">
		<input type="submit" value="<?php $lang->put('submit'); ?>" class="sbmt" />
		<?php if($d) $module->printDelLink($d['id'], false, $lang->get('del-fus')); ?>
	</li>
</ul>
</form>
